<?php 
    $valuteTotal = $this->Session->read("valutalist");
    $categorieTotal = $this->Session->read("categorylist");
?>
     <div class="row-fluid">
            <h2 class="title" style="text-align: center">I nostri Bookmaker</h2>
           
            <div class="span12" id="center_container">
                <div id="container_wm"  style="position: relative;">
                <?php foreach($bookmakers as $bookmaker){?>
                        <br>
                        <div class="media">
                          <img class="pull-left" style="width: 100px;" class="media-object" src="<?php echo $this->webroot. $bookmaker["Bookmaker"]["logo"]?>" alt="<?php echo $bookmaker["Bookmaker"]["nome"]?> logo">
                            <div class="media-heading" style="margin: 0px;color:#222;"><?php echo $bookmaker["Bookmaker"]["nome"]?></div>
                          <div class="media-body">
                         <small> 
                             <label class="label label-success" style="min-height: 0;min-width: 0;"> Bonus : <?php echo $bookmaker["Bookmaker"]["bonus"]==""?"No":$bookmaker["Bookmaker"]["bonus"]  ?></label>
                             <label class="label label-success" style="min-height: 0;min-width: 0;"> Puntata Minima: <?php echo $bookmaker["Bookmaker"]["puntata_minima"]?></label>
                             <label class="label label-success" style="min-height: 0;min-width: 0;"> Versamento Minimo: <?php echo $bookmaker["Bookmaker"]["versamento_minimo"]?></label>
                             <br>
                             <?php foreach(explode(",", $bookmaker["Bookmaker"]["valuta"]) as $valuta){ 
                                if($valuta){?>
                                    <label class="label label-warning" style="min-height: 0;min-width: 0;"> <?php echo $valuteTotal[$valuta] ?></label>
                             <?php }}?>
                             <br>
                             <?php foreach(explode(",", $bookmaker["Bookmaker"]["categoria"]) as $categoria){ 
                                if($categoria){?>
                                    <label class="label label-warning" style="min-height: 0;min-width: 0;"> <?php echo $categorieTotal[$categoria] ?></label>
                             <?php }}?>
                             <br>
                             <?php foreach($bookmaker["Links"] as $link){ ?>
                                  <a href="http://<?php echo $link["link"] ?>" target="_blank"  class="" ><i class="<?php echo AppController::$languageflags[$link["langname"]];?>"></i></a>
                             <?php }?>
                          </small>
                          <p style="min-height: 10px;color:#000;"> <?php echo $bookmaker["BookmakerLang"][Configure::read('Config.language')]["descrizione"]?></p>
                            <a href="#" class="btn btn-primary btn-small" role="button">dettagli</a>
                          </div>
                        </div>
                <?}?>
                 </div>       
            </div>
      </div>
